<?php

namespace app\store\model;

use think\Model;

class BillingInfoModel extends Model
{
    protected $connection = 'db_platform_qptreasuredb';

    protected $table = 'billing_info';

    /**根据(日期)获取所有计费点的金额
     * @param $date
     * @return float
     */
    public static function getRecharge($date){
        return self::where(['time'=>$date])->sum('recharge');
    }














}